import java.util.ArrayList;
import java.util.List;

public class Text {

    public static void main(String[] args) {

        MyArrayList<String> names = new MyArrayList<>();
        names.add("张三");
        names.add("李四");
        names.add("王五");
        names.add("赵六");
        names.add("赵六");
        names.add("赵六");
        names.add("赵六");
        names.add("赵六");
        names.add("赵六");
        names.add("赵六");
        names.add("赵六");

        //names.forEach( date -> System.out.println(date) );
        names.forEach( System.out::println);

/*        System.out.println(names.size());
        List<String> list = new ArrayList<>();*/

        //names.remove(2);
        //names.remove(0);


        System.out.println(names);
/*        ArrayList<String> list = new ArrayList<>();
        MyArrayList<String> myArrayList = new MyArrayList<>();
        myArrayList.add("李四");
        myArrayList.add("张三");
        System.out.println(myArrayList);
        list.add("李四");
        list.add("张三");
        System.out.println(list);
        System.out.println("_______________");
        System.out.println(myArrayList.get(4));
        System.out.println(list.get(0));*/
    }
}
